package com.example.weexnews;

import com.taobao.weex.annotation.JSMethod;
import com.taobao.weex.bridge.JSCallback;
import com.taobao.weex.common.WXModule;

import java.io.IOException;

public class NetModule extends WXModule {

    @JSMethod(uiThread = false)
    public void getResult(String url, JSCallback callback) {
        try {
            NetUtil.getNet(url, callback);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
